package net.oschina.app.base;

import android.support.v7.widget.RecyclerView;

import java.util.List;


/**
 * Created by wei03 on 2017/1/14.
 */

public abstract class BaseAdapter extends RecyclerView.Adapter{
    protected List mDatas;

    public void setDatas(List datas) {
        mDatas = datas;
        notifyDataSetChanged();
    }

    @Override
    public int getItemCount() {
        if (mDatas != null) {
            return mDatas.size();
        }
        return 0;
    }
}
